{% extends 'public/layout.html' %}
{% block load_css %}
<link rel="stylesheet" type="text/css" href="/static/css/plugins/select2/select2.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/plugins/chosen/bootstrap-chosen.css">
{% endblock %}
{% block load_js %}
	<script type="text/javascript" src="/static/js/plugins/chosen/chosen.jquery.js"></script>
{% endblock %}

{% block body %}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">

			<div class="ibox float-e-margins" id="all">
                <div class="ibox-title">
                    <h5>主机批量导入文件上传(只支持csv格式)</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div align="left" class="ibox-content">
                    <form enctype="multipart/form-data" action="/resources/servers/load/" method="POST">
                        {% csrf_token %}
                       <input type="file" class="form-control" name="upload" />
                       <br/>
                       <!-- <input type="submit" value="导入主机资产"/> -->

                       <button class="btn btn-primary" type="submit">导入主机资产</button>
                    </form>
                </div>

        </div>
    </div>
</div>
{% endblock %}



